package edu.sctu.practice.class02.liqing.assignment03.assignment03_01;

/**
 * Created by 123456 on 2015/10/22.
 */
public abstract class GeometricObject {    //抽象类为父类
    protected String color;      //保护型字符串的图形颜色

    protected GeometricObject(String color) {    // 构造函数
        this.color = color;
    }

    public String getColor() {     //方法
        return color;
    }

    public abstract double findArea();//抽象方法，只允许声明。
    public abstract double findPerimeter();

}